* Please specify your own path to Nexis_hits_new

use "G:\My Drive\Meanma\Badanie\Funduszy\2017-18\Sasana\Wlasnosc\IGA\Nexis_hits_new.dta"

* Table 5
tsset quart
* don't use campaign, 'cos no dinners during campaign
eststo: glm other gov elec_count_q conlead_q quart, family(nbinomial 1) vce(hac nwest) eform
eststo: glm propfinal gov_q elec_count_q conlead_q quart, family(nbinomial 1) vce(hac nwest) eform
eststo: glm constructfinal gov_q elec_count_q conlead_q quart, family(nbinomial 1) vce(hac nwest) eform

esttab using dinners.rtf, se eform

* Table A2
summarize gov_q elec_count_q conlead_q if conlead_q!=.

